package com.sn.campus.controller;



import com.sn.campus.model.ResponseResult;
import com.sn.campus.service.TFaceRecognitionRecordService;
import net.sf.json.JSONObject;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("FaceRecognition")
public class FaceRecognitionController {

    @Resource
    TFaceRecognitionRecordService tFaceRecognitionRecordService;
    @PostMapping("UploadRecord")
    public ResponseResult<?> uploadRecord(@RequestBody JSONObject param){
        ResponseResult<?> result = new ResponseResult<>();
        System.out.println(param);
        tFaceRecognitionRecordService.addData(param);

        return result;
    }
}
